var obj={
    name:'terry',
    age:12
};
// 点访问
console.log(obj.name);
console.log(obj.age);
// 中括号访问
console.log(obj['name']);      